package ru.drugdrugu.dao.impl;

import java.io.Serializable;

import ru.drugdrugu.dao.GenericDao;

public class DAOWrapperObject<T, PK extends Serializable> implements
		GenericDao<T, PK> {

	private final GenericDao<T, PK> object;

	public DAOWrapperObject(GenericDao<T, PK> object) {
		this.object = object;
	}

	@Override
	public PK create(T newInstance) {
		return object.create(newInstance);
	}

	@Override
	public T read(PK id) {
		return object.read(id);
	}

	@Override
	public void update(T transientObject) {
		object.update(transientObject);

	}

	@Override
	public void delete(T persistentObject) {
		object.delete(persistentObject);

	}

}
